package com.spring;

/**
 * @ClassName: BeanNameAware
 * @Description: spring回调
 * @Author: spring-source_小强 (QQ:2680825683)
 * @Since: 2023/5/9 8:54
 */
public interface BeanNameAware {

    /**
     * Set the name of the bean in the bean factory that created this bean.
     * <p>Invoked after population of normal bean properties but before an
     * or a custom init-method.
     *
     * @param name the name of the bean in the factory.
     *             Note that this name is the actual bean name used in the factory, which may
     *             differ from the originally specified name: in particular for inner bean
     *             names, the actual bean name might have been made unique through appending
     *             method to extract the original bean name (without suffix), if desired.
     */
    void setBeanName(String name);

}
